class CreateOpinions < ActiveRecord::Migration
  def self.up
	  
	create_table :opinions do|t|
		
			t.column :comment_id,:integer
			t.column :user_id,:integer
			t.column :content,:text
			t.column :karma,:integer, :default =>6
			t.column :votes,:integer, :default=>1
			t.column :delete, :string, :limit => 3, :default => 'NO', :null => false
			t.column :create_on, :datetime
			t.column :modified, :integer	
		
	end	
  
	  
  end

  def self.down
  end
end
